$(function() {
	
})
function payClick(n,m) {
	id="#JY"+n;
	if($(id).val()<="0"){
		alert("请输入有效金额");
	}else{
	$.ajax({
		url : "http://127.0.0.1:8080/user/recharge",
		timeout : 30000,
		type : "post",
		dataType : "json",
		data : {
			"user_id" : n,
			"balance" :$(id).val()
		},
		success : function(data) {
			if (data.rtnmsg == "ok") {
				alert("充值成功！");
			}else{
				alert("充值失败！");
			}
			location.href ="http://127.0.0.1:8080/admin/indexBackPage?param=11";
		
		}
	});
	}
}